<html>
<body>
Reports redundant calls to unmodifiable collection wrappers within the Collections class.
If the argument that is passed to an unmodifiable collection wrapper is already immutable, such wrapping becomes pointless.
<p>Example:</p>
<pre>
<code>Collections.unmodifiableList(Collections.singletonList("abc"));
</code>
</pre>
In order to detect the methods that return unmodifiable collections, the inspection uses the <code>org.jetbrains.annotations.Unmodifiable</code> and <code>org.jetbrains.annotations.UnmodifiableView</code> annotations. Use them to extend the inspection to your own unmodifiable collection wrappers.
<!-- tooltip end -->
<p><small>New in 2020.3</small></p>
</body>
</html>
